/*****************************************************************
**                                                             	**
**  Copyright (C) 2004 Amlogic,Inc.                            	**
**  All rights reserved                                        	**
**        Revision : 1.0                                       	**
**                                                             	**
*****************************************************************/
#ifndef __AW_GPLAYER_APP_H_
#define __AW_GPLAYER_APP_H_

#define AUDIO_STOP					0
#define AUDIO_PLAY					1	
#define AUDIO_PAUSE					2
#define AUDIO_FAST_FOR_1			31
#define AUDIO_FAST_FOR_2			32
#define AUDIO_FAST_FOR_3			33
#define AUDIO_FAST_BACK_1			41
#define AUDIO_FAST_BACK_2			42
#define AUDIO_FAST_BACK_3			43


typedef enum {
    NORMAL_GET_CHAP = 0 ,
    MANUAL_GET_PRE_CHAP,
    MANUAL_GET_NEXT_CHAP
} unsupport_video_do;


extern Playlist_t *gplayer_playlist;

char *GPlayerGetCurrentName() ;

INT8U GPlayerPlayCmdResponse(AWMSG *pMsg, PCMDSET cmd_set) ;

extern RunGPlayer(Playlist_t *playlist);

void AWGPlayerKeyDo(INT32S key) ;

void AWGPlayerKeyProcess(AWMSG *pMsg) ;

void AWGPlayerNotificationProcess(AWMSG *pMsg) ;

void AWGPLAYERMsgProcess(AWMSG *pMsg) ;

// extern INT8U GPlayerPlayCmdResponse(AWMSG *pMsg, PCMDSET cmd_set);

void AWGPLAYERQuitProcess(void);

int PreviewGPlayer(char *filename);

void gplayer_play_preview(char *filename);

void GetMOVInfo(char *file_name, VIDEO_INFO *mov_info);

void GetMOVInfo(char *file_name, VIDEO_INFO *mov_info);

void disable_video_layer(void);
#endif //__AW_GPLAYER_APP_H_



